#include <sstream>
#include <xscript/xitemvisitor.h>
#include <xscript/xitemboolean.h>

std::wstring XItemBoolean::getItemInfo() {
    std::wstringstream stream;
    if (getValue() == true)
        stream << L"True";
    else
        stream << L"False";
    return stream.str();
}

void XItemBoolean::accept(std::shared_ptr<XItemVisitor> visitor) {
    if (visitor)
        visitor->visit(asBoolean());
}
